<template>
  <MyNav ref="mmm"/>
  <div id="app">
    <router-view v-on:loginSuccess="loginSuccess"></router-view>
  </div>
</template>

<script>
import MyNav from './components/MyNav.vue';

export default {
  components: {
    MyNav,
  },
  methods:{
      loginSuccess(user){
        this.$refs.mmm.loginMsg(user.user_name);
      }
    }
};
</script>

<style>
</style>